package com.kayang.feishu.pojo;

import lombok.Data;

import javax.validation.constraints.*;
import java.util.List;
import java.util.Map;


@Data
public class UserModel{


    private String user_id_type;

    private String department_id_type;

    private String client_token;


    private String user_id;

    @NotBlank(message = "name must be not blank")
    @Size(min = 1, max = 255, message = "name must be between 1 and 255 characters")
    private String name;

    @Size( max = 255, message = "name cannot exceed 255 characters")
    private String en_name;

    @Size( max = 255, message = "nickname cannot exceed 255 characters")
    private String nickname;

    @Email
    private String email;

    private String mobile;

    private boolean mobile_visible;

    @Max(value = 3)
    private int gender;

    private String avatar_key;

    @Size(min = 1, max = 50, message = "department_ids must be 1 - 50")
    private String [] department_ids;

    private String [] leader_user_id;

    @Size(max = 100, message = "city cannot exceed 100 characters")
    private String city;

    private String country;

    @Size(max = 255, message = "work_station cannot exceed 255 characters")
    private String work_station;

    private long join_time;

    @Size(max = 255, message = "employee_no cannot exceed 255 characters")
    private String employee_no;

    @Max(value = 5, message = "employee_type cannot exceed 5")
    private String employee_type;


    private List<Map> order;

    private List<Map> custom_attrs;

    @Email
    private String enterprise_email;

    @Size(max = 255, message = "job_title cannot exceed 255")
    private String job_title;


    private String geo;

    private String job_level_id;

    private String job_family_id;

    private String [] subscription_ids;

    private String [] dotted_line_leader_user_ids;



}
